<?php


return [
    // 全局中间件，对所有请求生效处理跨域
    '' => [
        app\middleware\CorsMiddleware::class
    ],
    'api' => [
        // ...
    ],
    'index' => [
        // ...
    ],
    //admin应用中间件处理token校验和权限验证
    'admin' => [
        app\admin\middleware\AuthCheck::class,
        app\admin\middleware\AutoInitMiddleware::class
    ]
];